package com.campsys.mapping;

import com.campsys.domain.TManagerClass;
import com.campsys.domain.param.ClazzAddParam;
import com.campsys.domain.param.ClazzUpdateParam;
import com.campsys.domain.vo.ClazzListVo;
import com.campsys.domain.vo.ClazzPageVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ClazzMapping {

    ClazzMapping INSTANCE = Mappers.getMapper(ClazzMapping.class);

    TManagerClass to(ClazzAddParam clazzAddParam);

    TManagerClass to(ClazzUpdateParam clazzUpdateParam);

    ClazzPageVo toPage(TManagerClass tManagerClass);

    List<ClazzListVo> toList(List<TManagerClass> list);
}
